package com.ctyon.watchmanager.model.db.entity;

import com.ctyon.watchmanager.model.db.entity.ex.LocationHistory;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * CreateDate：19-8-26 on 下午7:05
 * Describe:
 * Coder: lee
 */
@Entity(tableName = "locationHistory")
public class LocationEntity implements LocationHistory {

    @PrimaryKey(autoGenerate = true)
    private int id;

    @ColumnInfo(name = "watch_id")
    private String watchid;

    @ColumnInfo(name = "location")
    private String location;

    @ColumnInfo(name = "street")
    private String street;

    @ColumnInfo(name = "location_time")
    private String time;

    @Override
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String getWatchid() {
        return watchid;
    }

    public void setWatchid(String watchid) {
        this.watchid = watchid;
    }

    @Override
    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    @Override
    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    @Override
    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "LocationEntity{" +
                "id='" + id + '\'' +
                ", watchid='" + watchid + '\'' +
                ", location='" + location + '\'' +
                ", street='" + street + '\'' +
                ", time='" + time + '\'' +
                '}';
    }
}
